package com.xxyw.youjingmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxyw.common.utils.PageUtils;
import com.xxyw.youjingmall.product.entity.AttrAttrgroupRelationEntity;
import com.xxyw.youjingmall.product.entity.AttrEntity;
import com.xxyw.youjingmall.product.entity.AttrGroupEntity;
import com.xxyw.youjingmall.product.vo.AttrAttrgroupVo;
import com.xxyw.youjingmall.product.vo.AttrGroupAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author juyoujing
 * @email juyoujing@gmail.com
 * @date 2023-11-29 23:23:55
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void deleteRelation(List<AttrAttrgroupRelationEntity> relationList);

    List<AttrGroupAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

